//
//  CategoryCollectionViewCell.m
//  IOS_Catagory_Demo
//
//  Created by hejingjin on 15/9/17.
//  Copyright (c) 2015年 tjarry. All rights reserved.
//

#import "CategoryCollectionViewCell.h"

@implementation CategoryCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _imageview = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.width)];
//        _imageview.layer.cornerRadius = (frame.size.width-10)/2;
//        _imageview.layer.masksToBounds = YES;
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(-4,MAX_Y(_imageview.frame) + 5, frame.size.width + 8, 10)];
        _nameLabel.font = [UIFont systemFontOfSize:10];
        [self.contentView addSubview:_imageview];
        [self.contentView addSubview:_nameLabel];
    }
    return self;
}

@end
